﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="frm_QueryProduct.aspx.cs" Inherits="Mod_QueryFrom_frm_QueryProduct" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>商品搜索</title>
    <base target="_self"/>
    <link type="text/css" rel="stylesheet" href="../App_Css/css1.css"/>
    <script language="javascript" src="../App_script/index.js"></script>
</head>
<body rightmargin="0" topmargin="0" bottommargin="0" leftmargin="0">
    <form id="QueryProduct" runat="server">
        <input type="hidden" id="hidValue" style="width: 0px; height: 0px">
        <table width="460" height="330" background="../App_Images/b_27.gif" cellpadding="0" cellspacing="0" border="0" class="text">
            <tr>
                <td height="60" align="center" valign="bottom">
                    <table width="95%" height="50" cellpadding="0" cellspacing="0" border="1" bordercolor="#a1a7bb" style="border-collapse: collapse">
                        <tr>
                            <td align="center">
                                <table>
                                    <tr>
                                        <td style="width: 324px"><asp:TextBox ID="txtKey" runat="server" CssClass="text" Height="14px" Width="300px" onkeydown="ButtonSubmit('ibtnSearch')" /></td>
                                        <td><asp:imagebutton ID="ibtnSearch" runat="server" ImageUrl="../App_Images/b_32.gif" OnClick="ibtnSearch_Click" Height="19px"/>&nbsp;&nbsp;<asp:imagebutton ID="ibtnResult" runat="server" ImageUrl="../App_Images/b_33.gif" OnClick="ibtnResult_Click"/></td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>      
            </tr>
            <tr>
                <td height="190" align="center">
                    <table width="440" height="190" cellpadding="0" cellspacing="0" border="0">
                        <tr>
                            <td align="left" valign="top">
                                <div style="overflow: auto; width: 440px; height: 190px">
                                    <table width="440" height="190" cellpadding="0" cellspacing="0" border="0">
                                        <tr>
                                            <td height="20">
                                                <table bgcolor="#CED3E2" width="440" height="20" cellpadding="0" cellspacing="0" class="text" border="1" bordercolor="#a1a7bb" style="border-collapse: collapse">
                                                    <tr>
                                                        <td width="80" align="center" style="font-weight: bold; color: #183184">料号</td>
                                                        <td width="120" align="center" style="font-weight: bold; color: #183184">品名</td>
                                                        <td width="60" align="center" style="font-weight: bold; color: #183184">规格</td>
                                                        <td width="50" align="center" style="font-weight: bold; color: #183184">单位</td>
                                                        <td width="50" align="center" style="font-weight: bold; color: #183184">仓库</td>
                                                        <td width="80" align="center" style="font-weight: bold; color: #183184">备注</td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td height="170" valign="top">
                                                <asp:DataGrid ID="dgrdQueryResult" Height="20px" runat="server" AllowPaging="True" AutoGenerateColumns="False" PageSize="8" ShowHeader="False" BorderStyle="None" BorderWidth="0px" CellPadding="0" CssClass="text" OnItemDataBound="dgrdQueryResult_ItemDataBound">
                                                    <PagerStyle Visible="False" BorderStyle="None" BorderWidth="0px" />
                                                    <Columns>
                                                        <asp:TemplateColumn>
                                                            <ItemTemplate>
                                                                <asp:Panel ID="panItem" runat="server">
                                                                    <table width="440" height="20" cellpadding="0" cellspacing="0" class="text" border="1" bordercolor="#a1a7bb" style="border-collapse: collapse">
                                                                        <tr onfocusin="this.bgColor='#D3E2D7'" onfocusout="this.bgColor=''">
                                                                            <td width="80"><asp:textbox ID="txt0" Text='<%# DataBinder.Eval(Container.DataItem, "im_no")%>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "im_no")%>' runat="server" BackColor="transparent" CssClass="text" BorderWidth="0" style="cursor:default" ReadOnly="true" Width="75" /></td>
                                                                            <td width="120"><asp:textbox ID="txt1" Text='<%# DataBinder.Eval(Container.DataItem, "im_name")%>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "im_name")%>' runat="server" BackColor="transparent" CssClass="text" BorderWidth="0" style="cursor:default" ReadOnly="true" Width="115" /></td>
                                                                            <td width="60"><asp:textbox ID="txt2" Text='<%# DataBinder.Eval(Container.DataItem, "im_size")%>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "im_size")%>' runat="server" BackColor="transparent" CssClass="text" BorderWidth="0" style="cursor:default" ReadOnly="true" Width="55" /></td>
                                                                            <td width="50"><asp:textbox ID="txt3" Text='<%# DataBinder.Eval(Container.DataItem, "nt_id")%>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "nt_id")%>' runat="server" BackColor="transparent" CssClass="text" BorderWidth="0" style="cursor:default" ReadOnly="true" Width="45" /></td>
                                                                            <td width="50"><asp:textbox ID="txt4" Text='<%# DataBinder.Eval(Container.DataItem, "wh_name")%>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "wh_name")%>' runat="server" BackColor="transparent" CssClass="text" BorderWidth="0" style="cursor:default" ReadOnly="true" Width="45" /></td>
                                                                            <td width="80"><asp:textbox ID="txt5" Text='<%# DataBinder.Eval(Container.DataItem, "remark")%>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "remark")%>' runat="server" BackColor="transparent" CssClass="text" BorderWidth="0" style="cursor:default" ReadOnly="true" Width="70" /></td>
                                                                        </tr>
                                                                    </table>
                                                                </asp:Panel>
                                                            </ItemTemplate>
                                                        </asp:TemplateColumn>
                                                        <asp:BoundColumn DataField="im_buyprice" ReadOnly="True" Visible="False"></asp:BoundColumn>
                                                        <asp:BoundColumn DataField="price" ReadOnly="True" Visible="False"></asp:BoundColumn>
                                                        <asp:BoundColumn DataField="is_batnumber" ReadOnly="True" Visible="False"></asp:BoundColumn>                                                        
                                                    </Columns>
                                                    <AlternatingItemStyle BackColor="#EEEFF2" />
                                                </asp:DataGrid>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td height="20" align="right" valign="top">
                    <asp:Label ID="lblQueryRsCounts" runat="server" CssClass="text"/>
                    <asp:Label ID="lblQueryPageCounts" runat="server" CssClass="text"/>
                    <asp:Label ID="lblQueryCurrPage" runat="server" CssClass="text"/>&nbsp;&nbsp;
                    <asp:linkbutton ID="lbtnQueryFirst" runat="server" CssClass="text" Text="首  页" OnClick="ChangPage" CommandName="0" />
                    <asp:linkbutton ID="lbtnQueryPrev" runat="server" CssClass="text" Text="上一页" OnClick="ChangPage" CommandName="1" />
                    <asp:linkbutton ID="lbtnQueryNext" runat="server" CssClass="text" Text="下一页" OnClick="ChangPage" CommandName="2" />
                    <asp:linkbutton ID="lbtnQueryEnd" runat="server" CssClass="text" Text="尾  页" OnClick="ChangPage" CommandName="3" />&nbsp;&nbsp;
                </td>
            </tr>
            <tr>
                <td height="40" align="center" valign="top">
                    <table background="../App_Images/b_12.gif" width="452" height="35" cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-top: #a1a7bb 1px solid;">
                        <tr>
                            <td align="center" style="width: 130px"><asp:ImageButton ID="ibtnRef" ImageUrl="../App_Images/b_28_1.gif" runat="server" OnClick="ibtnRef_Click" /></td>
                            <td style="width: 154px"></td>
                            <td align="center" style="width: 80px"><asp:image ID="imgSubmit" style="cursor:hand" ImageUrl="../App_Images/b_29_1.gif" runat="server"/></td>
                            <td align="center" width="100"><img style="cursor:hand" src="../App_Images/b_30_1.gif" onclick="window.close();"></td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
